package com.bj.dz.controller;
import java.util.List;

import javax.annotation.Resource;

import com.bj.dz.entity.Role;
import com.bj.dz.service.RoleService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/role")
public class RoleController {
	@Resource
	private RoleService rs;


	/**
	 * 获取角色
	 */
	@RequestMapping("/findRoles.do")
	public  List<Role> findRoles(){
		List<Role> roleList=rs.findRoles();
		return roleList;
	}

	
	
}
